package com.ruoyi.merchant.shop.domain;

/**
 * 地理位置坐标结果
 * 
 * @author zzr
 * @date 2025-09-14
 */
public class LocationResult {
    
    /** 经度 */
    private String longitude;
    
    /** 纬度 */
    private String latitude;
    
    /** 地址 */
    private String address;
    
    /** 状态码 */
    private Integer status;
    
    /** 消息 */
    private String message;
    
    public LocationResult() {}
    
    public LocationResult(String longitude, String latitude, String address) {
        this.longitude = longitude;
        this.latitude = latitude;
        this.address = address;
        this.status = 0; // 0表示成功
    }
    
    public LocationResult(Integer status, String message) {
        this.status = status;
        this.message = message;
    }
    
    // Getters and Setters
    public String getLongitude() {
        return longitude;
    }
    
    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }
    
    public String getLatitude() {
        return latitude;
    }
    
    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }
    
    public String getAddress() {
        return address;
    }
    
    public void setAddress(String address) {
        this.address = address;
    }
    
    public Integer getStatus() {
        return status;
    }
    
    public void setStatus(Integer status) {
        this.status = status;
    }
    
    public String getMessage() {
        return message;
    }
    
    public void setMessage(String message) {
        this.message = message;
    }
    
    @Override
    public String toString() {
        return "LocationResult{" +
                "longitude='" + longitude + '\'' +
                ", latitude='" + latitude + '\'' +
                ", address='" + address + '\'' +
                ", status=" + status +
                ", message='" + message + '\'' +
                '}';
    }
}